package com.bankLogisticsSys.util;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.bankLogisticsSys.controller.AcceptController;
import com.bankLogisticsSys.model.Expressinfo;
import com.bankLogisticsSys.service.Cron4jService;

public class OverTimeCheck implements Runnable{
	private static final Logger logger = LoggerFactory
			.getLogger(OverTimeCheck.class);
	
	@Override
	public void run() {
		Cron4jService oservice = new Cron4jService();
		List<Expressinfo> eiList = oservice.getDailyTrack();
		oservice.setOverTimeState(eiList);
		oservice.sendOverTimeMsg(eiList);
		logger.info("定时任务，记录超时包裹，并发出记录");
	}
}
